﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;

namespace BLL
{

    public class SignInBLL
    {
        SignInDAL sdal = new SignInDAL();
        public List<SignIn> auctions()
        {
            return sdal.auctions();
        }
        public bool DeleteSin(SignIn si)
        {
            return sdal.DeleteSin(si);
        }
        public bool UpdateSin(SignIn sid)
        {
            return sdal.UpdateSin(sid);
        }
        public SignIn Sid(int id)
        {
            return sdal.auctions().Where(a=>a.SignInID==id).FirstOrDefault();
        }
        /// <summary>
        /// 登录方法
        /// </summary>
        /// <param name="sir"></param>
        /// <returns></returns>
        public bool InserSin(SignIn sir)
        {
            return sdal.InserSin(sir);
        }

        
    }
}
